﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类nimp_supply
	/// </summary>
	[Serializable]
	public class nimpsupply : Entity 
	{ 
		 public nimpsupply() 
            : base("nimp_supply") 
        { 

        }


		#region Model
		private int _id;
		private string _供应商编号;
		private string _供应商全称;
		private string _供应商简称;
		private string _联系人;
		private string _地址;
		private string _电话;
		private string _传真;
		private string _网址;
		private string _电子邮件;
		private string _邮编;
		private string _银行帐号;
		private string _开户银行;
		private string _备注;
		private string _应付金额;
		private string _已付金额;
		private string _应付余额;
		private bool? _打印通讯录;
		private string _手机;
		private string _寻呼;
		private string _客户来源;
		private DateTime? _发布时间;
		private DateTime? _登录时间;
		private string _用户名;
		private string _密码;
		private string _登录次数;
		private string _费用参数;
		private string _nimp_ip;
		private string _nimp_database;
		private string _database_name;
		private string _database_pass;
		private string _supply_bmname;
		private string _supply_subbmname;
		private string _供方类型;
		private string _英文全称;
		private string _英文地址;
		private string _IP地址;
		private string _数据库名称;
		private string _省份;
		private string _城市;
		private string _母公司所在地;
		private string _ip;
		private string _nimp;
		private string _nexp;
		private string _fwd;
		private string _trans;
		private string _waimao;
		private string _wh;
		private string _hr;
		private string _oa;
		private string _修改人;
		private DateTime? _修改时间;
		private string _用友编号;
		private string _客户简称;
		private DateTime? _删除时间;
		private string _删除人;
		private DateTime? _录入时间;
		private string _录入人;
		private int? _结账周期;
		private string _协议归档号;
		private string _协议编号;
		private string _信用额度;
		private int? _帐期;
		private string _ServiceModel;
	 
		/// <summary>
		/// 
		/// </summary>
		public int id
		{
			get{ return _id; }
			set
			{
				this.OnPropertyValueChange(_.id,_id,value);
				this._id = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 供应商编号
		{
			get{ return _供应商编号; }
			set
			{
				this.OnPropertyValueChange(_.供应商编号,_供应商编号,value);
				this._供应商编号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 供应商全称
		{
			get{ return _供应商全称; }
			set
			{
				this.OnPropertyValueChange(_.供应商全称,_供应商全称,value);
				this._供应商全称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 供应商简称
		{
			get{ return _供应商简称; }
			set
			{
				this.OnPropertyValueChange(_.供应商简称,_供应商简称,value);
				this._供应商简称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 联系人
		{
			get{ return _联系人; }
			set
			{
				this.OnPropertyValueChange(_.联系人,_联系人,value);
				this._联系人 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 地址
		{
			get{ return _地址; }
			set
			{
				this.OnPropertyValueChange(_.地址,_地址,value);
				this._地址 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 电话
		{
			get{ return _电话; }
			set
			{
				this.OnPropertyValueChange(_.电话,_电话,value);
				this._电话 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 传真
		{
			get{ return _传真; }
			set
			{
				this.OnPropertyValueChange(_.传真,_传真,value);
				this._传真 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 网址
		{
			get{ return _网址; }
			set
			{
				this.OnPropertyValueChange(_.网址,_网址,value);
				this._网址 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 电子邮件
		{
			get{ return _电子邮件; }
			set
			{
				this.OnPropertyValueChange(_.电子邮件,_电子邮件,value);
				this._电子邮件 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 邮编
		{
			get{ return _邮编; }
			set
			{
				this.OnPropertyValueChange(_.邮编,_邮编,value);
				this._邮编 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 银行帐号
		{
			get{ return _银行帐号; }
			set
			{
				this.OnPropertyValueChange(_.银行帐号,_银行帐号,value);
				this._银行帐号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 开户银行
		{
			get{ return _开户银行; }
			set
			{
				this.OnPropertyValueChange(_.开户银行,_开户银行,value);
				this._开户银行 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 备注
		{
			get{ return _备注; }
			set
			{
				this.OnPropertyValueChange(_.备注,_备注,value);
				this._备注 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 应付金额
		{
			get{ return _应付金额; }
			set
			{
				this.OnPropertyValueChange(_.应付金额,_应付金额,value);
				this._应付金额 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 已付金额
		{
			get{ return _已付金额; }
			set
			{
				this.OnPropertyValueChange(_.已付金额,_已付金额,value);
				this._已付金额 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 应付余额
		{
			get{ return _应付余额; }
			set
			{
				this.OnPropertyValueChange(_.应付余额,_应付余额,value);
				this._应付余额 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? 打印通讯录
		{
			get{ return _打印通讯录; }
			set
			{
				this.OnPropertyValueChange(_.打印通讯录,_打印通讯录,value);
				this._打印通讯录 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 手机
		{
			get{ return _手机; }
			set
			{
				this.OnPropertyValueChange(_.手机,_手机,value);
				this._手机 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 寻呼
		{
			get{ return _寻呼; }
			set
			{
				this.OnPropertyValueChange(_.寻呼,_寻呼,value);
				this._寻呼 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 客户来源
		{
			get{ return _客户来源; }
			set
			{
				this.OnPropertyValueChange(_.客户来源,_客户来源,value);
				this._客户来源 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 发布时间
		{
			get{ return _发布时间; }
			set
			{
				this.OnPropertyValueChange(_.发布时间,_发布时间,value);
				this._发布时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 登录时间
		{
			get{ return _登录时间; }
			set
			{
				this.OnPropertyValueChange(_.登录时间,_登录时间,value);
				this._登录时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 用户名
		{
			get{ return _用户名; }
			set
			{
				this.OnPropertyValueChange(_.用户名,_用户名,value);
				this._用户名 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 密码
		{
			get{ return _密码; }
			set
			{
				this.OnPropertyValueChange(_.密码,_密码,value);
				this._密码 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 登录次数
		{
			get{ return _登录次数; }
			set
			{
				this.OnPropertyValueChange(_.登录次数,_登录次数,value);
				this._登录次数 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 费用参数
		{
			get{ return _费用参数; }
			set
			{
				this.OnPropertyValueChange(_.费用参数,_费用参数,value);
				this._费用参数 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string nimp_ip
		{
			get{ return _nimp_ip; }
			set
			{
				this.OnPropertyValueChange(_.nimp_ip,_nimp_ip,value);
				this._nimp_ip = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string nimp_database
		{
			get{ return _nimp_database; }
			set
			{
				this.OnPropertyValueChange(_.nimp_database,_nimp_database,value);
				this._nimp_database = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string database_name
		{
			get{ return _database_name; }
			set
			{
				this.OnPropertyValueChange(_.database_name,_database_name,value);
				this._database_name = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string database_pass
		{
			get{ return _database_pass; }
			set
			{
				this.OnPropertyValueChange(_.database_pass,_database_pass,value);
				this._database_pass = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string supply_bmname
		{
			get{ return _supply_bmname; }
			set
			{
				this.OnPropertyValueChange(_.supply_bmname,_supply_bmname,value);
				this._supply_bmname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string supply_subbmname
		{
			get{ return _supply_subbmname; }
			set
			{
				this.OnPropertyValueChange(_.supply_subbmname,_supply_subbmname,value);
				this._supply_subbmname = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 供方类型
		{
			get{ return _供方类型; }
			set
			{
				this.OnPropertyValueChange(_.供方类型,_供方类型,value);
				this._供方类型 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 英文全称
		{
			get{ return _英文全称; }
			set
			{
				this.OnPropertyValueChange(_.英文全称,_英文全称,value);
				this._英文全称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 英文地址
		{
			get{ return _英文地址; }
			set
			{
				this.OnPropertyValueChange(_.英文地址,_英文地址,value);
				this._英文地址 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IP地址
		{
			get{ return _IP地址; }
			set
			{
				this.OnPropertyValueChange(_.IP地址,_IP地址,value);
				this._IP地址 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 数据库名称
		{
			get{ return _数据库名称; }
			set
			{
				this.OnPropertyValueChange(_.数据库名称,_数据库名称,value);
				this._数据库名称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 省份
		{
			get{ return _省份; }
			set
			{
				this.OnPropertyValueChange(_.省份,_省份,value);
				this._省份 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 城市
		{
			get{ return _城市; }
			set
			{
				this.OnPropertyValueChange(_.城市,_城市,value);
				this._城市 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 母公司所在地
		{
			get{ return _母公司所在地; }
			set
			{
				this.OnPropertyValueChange(_.母公司所在地,_母公司所在地,value);
				this._母公司所在地 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ip
		{
			get{ return _ip; }
			set
			{
				this.OnPropertyValueChange(_.ip,_ip,value);
				this._ip = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string nimp
		{
			get{ return _nimp; }
			set
			{
				this.OnPropertyValueChange(_.nimp,_nimp,value);
				this._nimp = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string nexp
		{
			get{ return _nexp; }
			set
			{
				this.OnPropertyValueChange(_.nexp,_nexp,value);
				this._nexp = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string fwd
		{
			get{ return _fwd; }
			set
			{
				this.OnPropertyValueChange(_.fwd,_fwd,value);
				this._fwd = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string trans
		{
			get{ return _trans; }
			set
			{
				this.OnPropertyValueChange(_.trans,_trans,value);
				this._trans = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string waimao
		{
			get{ return _waimao; }
			set
			{
				this.OnPropertyValueChange(_.waimao,_waimao,value);
				this._waimao = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string wh
		{
			get{ return _wh; }
			set
			{
				this.OnPropertyValueChange(_.wh,_wh,value);
				this._wh = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string hr
		{
			get{ return _hr; }
			set
			{
				this.OnPropertyValueChange(_.hr,_hr,value);
				this._hr = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string oa
		{
			get{ return _oa; }
			set
			{
				this.OnPropertyValueChange(_.oa,_oa,value);
				this._oa = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 修改人
		{
			get{ return _修改人; }
			set
			{
				this.OnPropertyValueChange(_.修改人,_修改人,value);
				this._修改人 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 修改时间
		{
			get{ return _修改时间; }
			set
			{
				this.OnPropertyValueChange(_.修改时间,_修改时间,value);
				this._修改时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 用友编号
		{
			get{ return _用友编号; }
			set
			{
				this.OnPropertyValueChange(_.用友编号,_用友编号,value);
				this._用友编号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 客户简称
		{
			get{ return _客户简称; }
			set
			{
				this.OnPropertyValueChange(_.客户简称,_客户简称,value);
				this._客户简称 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 删除时间
		{
			get{ return _删除时间; }
			set
			{
				this.OnPropertyValueChange(_.删除时间,_删除时间,value);
				this._删除时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 删除人
		{
			get{ return _删除人; }
			set
			{
				this.OnPropertyValueChange(_.删除人,_删除人,value);
				this._删除人 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? 录入时间
		{
			get{ return _录入时间; }
			set
			{
				this.OnPropertyValueChange(_.录入时间,_录入时间,value);
				this._录入时间 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 录入人
		{
			get{ return _录入人; }
			set
			{
				this.OnPropertyValueChange(_.录入人,_录入人,value);
				this._录入人 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? 结账周期
		{
			get{ return _结账周期; }
			set
			{
				this.OnPropertyValueChange(_.结账周期,_结账周期,value);
				this._结账周期 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 协议归档号
		{
			get{ return _协议归档号; }
			set
			{
				this.OnPropertyValueChange(_.协议归档号,_协议归档号,value);
				this._协议归档号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 协议编号
		{
			get{ return _协议编号; }
			set
			{
				this.OnPropertyValueChange(_.协议编号,_协议编号,value);
				this._协议编号 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string 信用额度
		{
			get{ return _信用额度; }
			set
			{
				this.OnPropertyValueChange(_.信用额度,_信用额度,value);
				this._信用额度 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? 帐期
		{
			get{ return _帐期; }
			set
			{
				this.OnPropertyValueChange(_.帐期,_帐期,value);
				this._帐期 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ServiceModel
		{
			get{ return _ServiceModel; }
			set
			{
				this.OnPropertyValueChange(_.ServiceModel,_ServiceModel,value);
				this._ServiceModel = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的标识列
		/// </summary>
		public override Field GetIdentityField()
		{
			return _.id;
		}
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.用户名			};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.id,
				_.供应商编号,
				_.供应商全称,
				_.供应商简称,
				_.联系人,
				_.地址,
				_.电话,
				_.传真,
				_.网址,
				_.电子邮件,
				_.邮编,
				_.银行帐号,
				_.开户银行,
				_.备注,
				_.应付金额,
				_.已付金额,
				_.应付余额,
				_.打印通讯录,
				_.手机,
				_.寻呼,
				_.客户来源,
				_.发布时间,
				_.登录时间,
				_.用户名,
				_.密码,
				_.登录次数,
				_.费用参数,
				_.nimp_ip,
				_.nimp_database,
				_.database_name,
				_.database_pass,
				_.supply_bmname,
				_.supply_subbmname,
				_.供方类型,
				_.英文全称,
				_.英文地址,
				_.IP地址,
				_.数据库名称,
				_.省份,
				_.城市,
				_.母公司所在地,
				_.ip,
				_.nimp,
				_.nexp,
				_.fwd,
				_.trans,
				_.waimao,
				_.wh,
				_.hr,
				_.oa,
				_.修改人,
				_.修改时间,
				_.用友编号,
				_.客户简称,
				_.删除时间,
				_.删除人,
				_.录入时间,
				_.录入人,
				_.结账周期,
				_.协议归档号,
				_.协议编号,
				_.信用额度,
				_.帐期,
				_.ServiceModel
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_id,
				_供应商编号,
				_供应商全称,
				_供应商简称,
				_联系人,
				_地址,
				_电话,
				_传真,
				_网址,
				_电子邮件,
				_邮编,
				_银行帐号,
				_开户银行,
				_备注,
				_应付金额,
				_已付金额,
				_应付余额,
				_打印通讯录,
				_手机,
				_寻呼,
				_客户来源,
				_发布时间,
				_登录时间,
				_用户名,
				_密码,
				_登录次数,
				_费用参数,
				_nimp_ip,
				_nimp_database,
				_database_name,
				_database_pass,
				_supply_bmname,
				_supply_subbmname,
				_供方类型,
				_英文全称,
				_英文地址,
				_IP地址,
				_数据库名称,
				_省份,
				_城市,
				_母公司所在地,
				_ip,
				_nimp,
				_nexp,
				_fwd,
				_trans,
				_waimao,
				_wh,
				_hr,
				_oa,
				_修改人,
				_修改时间,
				_用友编号,
				_客户简称,
				_删除时间,
				_删除人,
				_录入时间,
				_录入人,
				_结账周期,
				_协议归档号,
				_协议编号,
				_信用额度,
				_帐期,
				_ServiceModel
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "id":
                    this._id = DataHelper.ConvertValue<int>(value);
                    break; 
				case "供应商编号":
                    this._供应商编号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "供应商全称":
                    this._供应商全称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "供应商简称":
                    this._供应商简称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "联系人":
                    this._联系人 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "地址":
                    this._地址 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "电话":
                    this._电话 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "传真":
                    this._传真 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "网址":
                    this._网址 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "电子邮件":
                    this._电子邮件 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "邮编":
                    this._邮编 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "银行帐号":
                    this._银行帐号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "开户银行":
                    this._开户银行 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "备注":
                    this._备注 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "应付金额":
                    this._应付金额 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "已付金额":
                    this._已付金额 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "应付余额":
                    this._应付余额 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "打印通讯录":
                    this._打印通讯录 = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "手机":
                    this._手机 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "寻呼":
                    this._寻呼 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "客户来源":
                    this._客户来源 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "发布时间":
                    this._发布时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "登录时间":
                    this._登录时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "用户名":
                    this._用户名 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "密码":
                    this._密码 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "登录次数":
                    this._登录次数 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "费用参数":
                    this._费用参数 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "nimp_ip":
                    this._nimp_ip = DataHelper.ConvertValue<string>(value);
                    break; 
				case "nimp_database":
                    this._nimp_database = DataHelper.ConvertValue<string>(value);
                    break; 
				case "database_name":
                    this._database_name = DataHelper.ConvertValue<string>(value);
                    break; 
				case "database_pass":
                    this._database_pass = DataHelper.ConvertValue<string>(value);
                    break; 
				case "supply_bmname":
                    this._supply_bmname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "supply_subbmname":
                    this._supply_subbmname = DataHelper.ConvertValue<string>(value);
                    break; 
				case "供方类型":
                    this._供方类型 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "英文全称":
                    this._英文全称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "英文地址":
                    this._英文地址 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IP地址":
                    this._IP地址 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "数据库名称":
                    this._数据库名称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "省份":
                    this._省份 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "城市":
                    this._城市 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "母公司所在地":
                    this._母公司所在地 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ip":
                    this._ip = DataHelper.ConvertValue<string>(value);
                    break; 
				case "nimp":
                    this._nimp = DataHelper.ConvertValue<string>(value);
                    break; 
				case "nexp":
                    this._nexp = DataHelper.ConvertValue<string>(value);
                    break; 
				case "fwd":
                    this._fwd = DataHelper.ConvertValue<string>(value);
                    break; 
				case "trans":
                    this._trans = DataHelper.ConvertValue<string>(value);
                    break; 
				case "waimao":
                    this._waimao = DataHelper.ConvertValue<string>(value);
                    break; 
				case "wh":
                    this._wh = DataHelper.ConvertValue<string>(value);
                    break; 
				case "hr":
                    this._hr = DataHelper.ConvertValue<string>(value);
                    break; 
				case "oa":
                    this._oa = DataHelper.ConvertValue<string>(value);
                    break; 
				case "修改人":
                    this._修改人 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "修改时间":
                    this._修改时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "用友编号":
                    this._用友编号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "客户简称":
                    this._客户简称 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "删除时间":
                    this._删除时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "删除人":
                    this._删除人 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "录入时间":
                    this._录入时间 = DataHelper.ConvertValue<DateTime?>(value);
                    break; 
				case "录入人":
                    this._录入人 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "结账周期":
                    this._结账周期 = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "协议归档号":
                    this._协议归档号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "协议编号":
                    this._协议编号 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "信用额度":
                    this._信用额度 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "帐期":
                    this._帐期 = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "ServiceModel":
                    this._ServiceModel = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "id":
                    return this._id; 
				case "供应商编号":
                    return this._供应商编号; 
				case "供应商全称":
                    return this._供应商全称; 
				case "供应商简称":
                    return this._供应商简称; 
				case "联系人":
                    return this._联系人; 
				case "地址":
                    return this._地址; 
				case "电话":
                    return this._电话; 
				case "传真":
                    return this._传真; 
				case "网址":
                    return this._网址; 
				case "电子邮件":
                    return this._电子邮件; 
				case "邮编":
                    return this._邮编; 
				case "银行帐号":
                    return this._银行帐号; 
				case "开户银行":
                    return this._开户银行; 
				case "备注":
                    return this._备注; 
				case "应付金额":
                    return this._应付金额; 
				case "已付金额":
                    return this._已付金额; 
				case "应付余额":
                    return this._应付余额; 
				case "打印通讯录":
                    return this._打印通讯录; 
				case "手机":
                    return this._手机; 
				case "寻呼":
                    return this._寻呼; 
				case "客户来源":
                    return this._客户来源; 
				case "发布时间":
                    return this._发布时间; 
				case "登录时间":
                    return this._登录时间; 
				case "用户名":
                    return this._用户名; 
				case "密码":
                    return this._密码; 
				case "登录次数":
                    return this._登录次数; 
				case "费用参数":
                    return this._费用参数; 
				case "nimp_ip":
                    return this._nimp_ip; 
				case "nimp_database":
                    return this._nimp_database; 
				case "database_name":
                    return this._database_name; 
				case "database_pass":
                    return this._database_pass; 
				case "supply_bmname":
                    return this._supply_bmname; 
				case "supply_subbmname":
                    return this._supply_subbmname; 
				case "供方类型":
                    return this._供方类型; 
				case "英文全称":
                    return this._英文全称; 
				case "英文地址":
                    return this._英文地址; 
				case "IP地址":
                    return this._IP地址; 
				case "数据库名称":
                    return this._数据库名称; 
				case "省份":
                    return this._省份; 
				case "城市":
                    return this._城市; 
				case "母公司所在地":
                    return this._母公司所在地; 
				case "ip":
                    return this._ip; 
				case "nimp":
                    return this._nimp; 
				case "nexp":
                    return this._nexp; 
				case "fwd":
                    return this._fwd; 
				case "trans":
                    return this._trans; 
				case "waimao":
                    return this._waimao; 
				case "wh":
                    return this._wh; 
				case "hr":
                    return this._hr; 
				case "oa":
                    return this._oa; 
				case "修改人":
                    return this._修改人; 
				case "修改时间":
                    return this._修改时间; 
				case "用友编号":
                    return this._用友编号; 
				case "客户简称":
                    return this._客户简称; 
				case "删除时间":
                    return this._删除时间; 
				case "删除人":
                    return this._删除人; 
				case "录入时间":
                    return this._录入时间; 
				case "录入人":
                    return this._录入人; 
				case "结账周期":
                    return this._结账周期; 
				case "协议归档号":
                    return this._协议归档号; 
				case "协议编号":
                    return this._协议编号; 
				case "信用额度":
                    return this._信用额度; 
				case "帐期":
                    return this._帐期; 
				case "ServiceModel":
                    return this._ServiceModel; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","nimp_supply");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field id = new Field("id","nimp_supply","id");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 供应商编号 = new Field("供应商编号","nimp_supply","供应商编号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 供应商全称 = new Field("供应商全称","nimp_supply","供应商全称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 供应商简称 = new Field("供应商简称","nimp_supply","供应商简称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 联系人 = new Field("联系人","nimp_supply","联系人");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 地址 = new Field("地址","nimp_supply","地址");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 电话 = new Field("电话","nimp_supply","电话");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 传真 = new Field("传真","nimp_supply","传真");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 网址 = new Field("网址","nimp_supply","网址");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 电子邮件 = new Field("电子邮件","nimp_supply","电子邮件");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 邮编 = new Field("邮编","nimp_supply","邮编");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 银行帐号 = new Field("银行帐号","nimp_supply","银行帐号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 开户银行 = new Field("开户银行","nimp_supply","开户银行");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 备注 = new Field("备注","nimp_supply","备注");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 应付金额 = new Field("应付金额","nimp_supply","应付金额");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 已付金额 = new Field("已付金额","nimp_supply","已付金额");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 应付余额 = new Field("应付余额","nimp_supply","应付余额");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 打印通讯录 = new Field("打印通讯录","nimp_supply","打印通讯录");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 手机 = new Field("手机","nimp_supply","手机");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 寻呼 = new Field("寻呼","nimp_supply","寻呼");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 客户来源 = new Field("客户来源","nimp_supply","客户来源");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 发布时间 = new Field("发布时间","nimp_supply","发布时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 登录时间 = new Field("登录时间","nimp_supply","登录时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 用户名 = new Field("用户名","nimp_supply","用户名");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 密码 = new Field("密码","nimp_supply","密码");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 登录次数 = new Field("登录次数","nimp_supply","登录次数");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 费用参数 = new Field("费用参数","nimp_supply","费用参数");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field nimp_ip = new Field("nimp_ip","nimp_supply","nimp_ip");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field nimp_database = new Field("nimp_database","nimp_supply","nimp_database");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field database_name = new Field("database_name","nimp_supply","database_name");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field database_pass = new Field("database_pass","nimp_supply","database_pass");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field supply_bmname = new Field("supply_bmname","nimp_supply","supply_bmname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field supply_subbmname = new Field("supply_subbmname","nimp_supply","supply_subbmname");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 供方类型 = new Field("供方类型","nimp_supply","供方类型");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 英文全称 = new Field("英文全称","nimp_supply","英文全称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 英文地址 = new Field("英文地址","nimp_supply","英文地址");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IP地址 = new Field("IP地址","nimp_supply","IP地址");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 数据库名称 = new Field("数据库名称","nimp_supply","数据库名称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 省份 = new Field("省份","nimp_supply","省份");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 城市 = new Field("城市","nimp_supply","城市");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 母公司所在地 = new Field("母公司所在地","nimp_supply","母公司所在地");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ip = new Field("ip","nimp_supply","ip");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field nimp = new Field("nimp","nimp_supply","nimp");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field nexp = new Field("nexp","nimp_supply","nexp");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field fwd = new Field("fwd","nimp_supply","fwd");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field trans = new Field("trans","nimp_supply","trans");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field waimao = new Field("waimao","nimp_supply","waimao");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field wh = new Field("wh","nimp_supply","wh");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field hr = new Field("hr","nimp_supply","hr");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field oa = new Field("oa","nimp_supply","oa");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 修改人 = new Field("修改人","nimp_supply","修改人");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 修改时间 = new Field("修改时间","nimp_supply","修改时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 用友编号 = new Field("用友编号","nimp_supply","用友编号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 客户简称 = new Field("客户简称","nimp_supply","客户简称");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 删除时间 = new Field("删除时间","nimp_supply","删除时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 删除人 = new Field("删除人","nimp_supply","删除人");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 录入时间 = new Field("录入时间","nimp_supply","录入时间");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 录入人 = new Field("录入人","nimp_supply","录入人");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 结账周期 = new Field("结账周期","nimp_supply","结账周期");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 协议归档号 = new Field("协议归档号","nimp_supply","协议归档号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 协议编号 = new Field("协议编号","nimp_supply","协议编号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 信用额度 = new Field("信用额度","nimp_supply","信用额度");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field 帐期 = new Field("帐期","nimp_supply","帐期");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ServiceModel = new Field("ServiceModel","nimp_supply","ServiceModel");
		}
		#endregion

 
	}
}

